package blog.rupesr.spring.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * The Interface BeanInjector.
 * 
 * @author Rupesh 
 */
@Retention(RetentionPolicy.RUNTIME)
@Target( { ElementType.FIELD })
public @interface BeanInjector {

	/**
	 * Bean name.
	 * 
	 * @return the string
	 */
	String beanName();

	/**
	 * Scope.
	 * 
	 * @return the scope
	 */
	Scope scope() default Scope.LOCAL;

	/**
	 * Required.
	 * 
	 * @return true, if successful
	 */
	boolean required() default false;
}
